package templateMethodPattern;

//Beverage模板框架：抽象类
public abstract class Beverage {

    public final void prepare() {
        boilWater();
        brew();
        pourInCup();
    }

    public void boilWater() {
        System.out.println("煮沸水");
    }

    public abstract void brew();

    public void pourInCup() {
        System.out.println("倒入杯子");
    }


}
